package com.ck567.syn;

/**
 * @author wuhao
 * @date 2021/1/15 10:37
 */
public class TestThree {
    public static void main(String[] args) {
        /**
         * 类锁 不同对象
         */
        Thread A_Thread_01 = new Thread(new SynThread(),"A_Thread_01");
        Thread A_Thread_02 = new Thread(new SynThread(),"A_Thread_02");
        Thread D_Thread_01 = new Thread(new SynThread(),"D_Thread_01");
        Thread D_Thread_02 = new Thread(new SynThread(),"D_Thread_02");
        Thread E_Thread_01 = new Thread(new SynThread(),"E_Thread_01");
        Thread E_Thread_02 = new Thread(new SynThread(),"E_Thread_02");
        A_Thread_01.start();
        A_Thread_02.start();
        D_Thread_01.start();
        D_Thread_02.start();
        E_Thread_01.start();
        E_Thread_02.start();
    }
}
